package com.taobao.txc.parser.hint;

import com.taobao.txc.common.util.c.g;
import java.util.HashMap;
import java.util.Map;

public class a
{
  public static String a = "'level'";
  public static String b = "'readuncommited'";
  public static String c = "'readcommited'";
  
  public static Map<String, Object> a(String paramString)
  {
    if (paramString == null) {
      return null;
    }
    String str = null;
    while ((str = f(paramString)) != null) {
      paramString = str;
    }
    return a(paramString, ",");
  }
  
  public static boolean b(String paramString)
  {
    return c.equals(c(paramString));
  }
  
  public static String c(String paramString)
  {
    Map localMap = a(d(paramString));
    if (localMap == null) {
      return null;
    }
    return (String)localMap.get(a);
  }
  
  public static String d(String paramString)
  {
    return g.b(paramString.toLowerCase(), "/*+txc({", "})*/");
  }
  
  public static String e(String paramString)
  {
    return g.b(paramString.toLowerCase(), "/*+txcrule(", ")*/");
  }
  
  private static String f(String paramString)
  {
    int i = paramString.indexOf('{');
    int j = paramString.indexOf('}');
    if (i == -1) {
      return null;
    }
    char[] arrayOfChar = paramString.toCharArray();
    for (int k = i; k < j; k++) {
      if (arrayOfChar[k] == ',') {
        arrayOfChar[k] = '^';
      }
    }
    arrayOfChar[i] = '[';
    arrayOfChar[j] = ']';
    return String.valueOf(arrayOfChar);
  }
  
  private static Map<String, Object> a(String paramString1, String paramString2)
  {
    HashMap localHashMap = new HashMap();
    String[] arrayOfString1 = paramString1.split(paramString2);
    for (String str1 : arrayOfString1)
    {
      int k = str1.indexOf(':');
      if (k != -1)
      {
        String str2 = str1.substring(0, k);
        String str3 = str1.substring(k + 1, str1.length());
        char[] arrayOfChar = str3.toCharArray();
        if ((arrayOfChar[0] == '[') && (arrayOfChar[(str3.length() - 1)] == ']')) {
          localHashMap.put(str2, a(String.copyValueOf(arrayOfChar, 1, str3.length() - 2), "\\^"));
        } else {
          localHashMap.put(str2, str3);
        }
      }
    }
    return localHashMap;
  }
}


/* Location:           C:\Users\ibm\Downloads\txc-yun-sample (1)\txc-yun-sample\lib\txc-client-2.0.72.jar
 * Qualified Name:     com.taobao.txc.parser.hint.a
 * JD-Core Version:    0.7.0.1
 */